<div class="form-group">
    <label for="name" class="col-sm-2 control-label">房间名称</label>
    <div class="col-sm-10">
        #@textInput("text","unitRoom.name","name","请输入房间名称...",unitRoom.name??'')
    </div>
</div>
<div class="form-group">
    <label for="name" class="col-sm-2 control-label">所属客栈</label>
    <div class="col-sm-10">
        <select class="form-control" id="unit_id" name="unitRoom.unit_id">
            <option value="0">==请选择==</option>
            #for(x:unitList)
                <option value="#(x.id)" #if(unitRoom&&unitRoom.unit_id==x.id)selected#end>#(x.name??'')</option>
            #end
        </select>
    </div>
</div>
<div class="form-group">
    <label for="desc" class="col-sm-2 control-label">封面图片</label>
    <div class="col-sm-10">
        #@webUploaderBtn(unitRoom,"unitRoom.cover")
    </div>
</div>
<div class="form-group">
    <label for="desc" class="col-sm-2 control-label">封面图片</label>
    <div class="col-sm-10">
        #@webUploaderMutiBtn(unitRoom.imgs()??"","unitRoom.imgs")
    </div>
</div>
<div class="form-group">
    <label for="desc" class="col-sm-2 control-label">房间简介</label>
    <div class="col-sm-10">
        #@textAreaInput("unitRoom.desc","desc","请输入房间简介...",unitRoom.desc??'')
    </div>
</div>
<div class="form-group">
    <label for="price" class="col-sm-2 control-label">房价</label>
    <div class="col-sm-10">
        #@textInput("text","price","price","请输入房价...",unitRoom.price??'')
    </div>
</div>
<div class="form-group">
    <label for="status" class="col-sm-2 control-label">房间状态</label>
    <div class="col-sm-10">
        <select class="form-control" name="unitRoom.status" id="status">
            <option value="0" #if(unitRoom??&&unitRoom.status==0)selected#end>接受预订</option>
            <option value="1" #if(unitRoom??&&unitRoom.status==1)selected#end>房间装修</option>
        </select>
    </div>
</div>
<div class="form-group">
    <label for="equip" class="col-sm-2 control-label">配套设施</label>
    <div class="col-sm-10">
        <input type="checkbox"  value="WIFI" name="unitRoom.equip">WIFI
        <input type="checkbox"  value="24小时热水" name="unitRoom.equip">24小时热水
        <input type="checkbox"  value="洗衣机" name="unitRoom.equip">洗衣机
        <input type="checkbox"  value="电视" name="unitRoom.equip">电视
        <input type="checkbox"  value="冰箱" name="unitRoom.equip">冰箱
        <input type="checkbox"  value="空调" name="unitRoom.equip">空调
        <input type="checkbox"  value="卫生间(独立)" name="unitRoom.equip">卫生间(独立)<br/>
        <input type="checkbox"  value="卫生间(公用)" name="unitRoom.equip">卫生间(公用)
        <input type="checkbox"  value="电梯" name="unitRoom.equip">电梯
        <input type="checkbox"  value="早餐" name="unitRoom.equip">早餐
        ###@textInput("text","unitRoom.equip","equip","请输入配套设施...",unitRoom.equip??'')
    </div>
</div>
#--
<div class="form-group">
    <label for="content" class="col-sm-2 control-label">内容信息</label>
    <div class="col-sm-10">
        #@kindEditorInput("unitRoom.content",unitRoom.content??'')
    </div>
</div>
--#
<div class="form-group">
    <div class="col-sm-offset-8 col-sm-10">
        <button type="button" id="submitBtn" class="btn btn-primary">点我保存</button>
        <input type="hidden" name="unitRoom.id" value="#(unitRoom.id??'')" id="id">
    </div>
</div>